#!/bin/sh
version=${1:?"no version number provided"}
set -e
set -x
dch -m -v "$version" -u low -c doc/changelog
sed -i -r -e "s/<(!ENTITY version) '[0-9.]+'>/<\1 '$version'>/" doc/manpages/*.xml
sed -i -r -e "s/(__version__) = '[0-9.]+'/\1 = '$version'/" sinntp
